﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/Admin.Master" AutoEventWireup="true"
	CodeBehind="ComplainList.aspx.cs" Inherits="SBACN.WebSite.Admin.Feedback.ComplainList" %>

<%@ Import Namespace="SBACN.WebSite.Common" %>
<%@ Register Src="../../UC/Pager.ascx" TagName="Pager" TagPrefix="uc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
	<script type="text/javascript">
		function DeleteCom(id) {
			if (confirm("确定要删除吗？")) {
				document.getElementById("<%= hid_ID.ClientID%>").value = id;
				document.getElementById("<%= btn_Delete.ClientID%>").click();
			}
		}

		function RefreshNewsList() {
			if (document.getElementById("<%= btn_NewsRefresh.ClientID%>")) {
				document.getElementById("<%= btn_NewsRefresh.ClientID%>").click();
			}
		}
         
	</script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
	<table cellpadding="0" cellspacing="0" border="0" width="95%">
		<tr align="left">
			<%--  <td>
                所属类别:
            </td>
            <td>
                <asp:DropDownList ID="dpl_Type" runat="server">
                </asp:DropDownList>
            </td>--%>
			<td width="10%" class="form-body-noborder">
				处理状态:
			</td>
			<td width="90%" class="form-body-noborder">
				<asp:RadioButtonList ID="radl_Status" runat="server" RepeatDirection="Horizontal"
					AutoPostBack="true" OnSelectedIndexChanged="radl_Status_SelectedIndexChanged">
				</asp:RadioButtonList>
			</td>
		</tr>
	</table>
	<table width="100%" border="0" cellspacing="0" cellpadding="0" class="table-stroke2">
		<tr>
			<%--<td width="3%" class="form-title2">
				序号
			</td>--%>
			<td width="8%" class="form-title2">
				投诉人
			</td>
			<td width="10%" class="form-title2">
				联系电话
			</td>
			<td width="15%" class="form-title2">
				邮箱
			</td>
			<td width="10%" class="form-title2">
				投诉时间
			</td>
			<td style="width:auto;" class="form-title2">
				投诉内容
			</td>
			<td width="8%" class="form-title2">
				所属类别
			</td>
			<td width="5%" class="form-title2">
				状态
			</td>
			<td width="25%" class="form-title2">
				备注
			</td>
			<td width="8%" class="form-title2">
				操作
			</td>
		</tr>
		<asp:Repeater ID="rpt_Comp" runat="server">
			<ItemTemplate>
				<tr>
					<%--<td class="form-body">
						<%# Eval("Sequence")%>
					</td>--%>
					<td class="form-body">
						<%# Eval("IdentityName")%>
					</td>
					<td class="form-body">
						<%# Eval("Telephone")%>
					</td>
					<td class="form-body">
						<%# Eval("Email")%>
					</td>
					<td class="form-body">
						<%# Convert.ToDateTime(Eval("CreateDate")).ToString("yyyy-MM-dd HH:mm:ss")%>
					</td>
					<td class="form-body">
						<%# Eval("Content").ToString().CutTo(20,18)%>
					</td>
					<td class="form-body">
						<%# Eval("TypeName")%>
					</td>
					<td class="form-body">
						<%# SBACN.WebSite.Cache.FeedbackCache.StatusDictionary[Convert.ToInt32(Eval("Status"))]%>
					</td>
					<td class="form-body">
						<%# Eval("Memo").ToString().CutTo(20,18)%>
					</td>
					<td class="form-body">
						<a href="ComplainDetail.aspx?st=00090003&id=<%# Eval("ID")%>" target="_blank">编辑</a> <a href="javascript:;"
							onclick="return DeleteCom('<%# Eval("ID")%>');">删除</a>
					</td>
				</tr>
			</ItemTemplate>
			<AlternatingItemTemplate>
				<tr>
					<%--<td class="form-label">
						<%# Eval("Sequence")%>
					</td>--%>
					<td class="form-label">
						<%# Eval("IdentityName")%>
					</td>
					<td class="form-label">
						<%# Eval("Telephone")%>
					</td>
					<td class="form-label">
						<%# Eval("Email")%>
					</td>
					<td class="form-label">
						<%# Convert.ToDateTime(Eval("CreateDate")).ToString("yyyy-MM-dd HH:mm:ss")%>
					</td>
					<td class="form-label">
						<%# Eval("Content").ToString().CutTo(20, 18)%>
					</td>
					<td class="form-label">
						<%# Eval("TypeName")%>
					</td>
					<td class="form-label">
						<%# SBACN.WebSite.Cache.FeedbackCache.StatusDictionary[Convert.ToInt32(Eval("Status"))]%>
					</td>
					<td class="form-label">
						<%# Eval("Memo").ToString().CutTo(20, 18)%>
					</td>
					<td class="form-label">
						<a href="ComplainDetail.aspx?st=00090003&id=<%# Eval("ID")%>" target="_blank">编辑</a> <a href="javascript:;"
							onclick="return DeleteCom('<%# Eval("ID")%>');">删除</a>
					</td>
				</tr>
			</AlternatingItemTemplate>
		</asp:Repeater>
		<tr>
			<td colspan="9" class="form-body">
				<uc1:Pager ID="Pager1" runat="server" OnSelectedPageIndexChanged="BindSelectedPageIndexChanged"
					PageSize="15" />
			</td>
		</tr>
	</table>
	<div style="display: none;">
		<asp:HiddenField ID="hid_ID" Value="" runat="server" />
		<asp:Button Text="删除" ID="btn_Delete" runat="server" OnClick="btn_Delete_Click" />
		<asp:Button Text="刷新" ID="btn_NewsRefresh" runat="server" OnClick="btn_NewsRefresh_Click" />
	</div>
	<div id="div_Content" title="投诉更改" style="width: 500px;">
		<table cellpadding="0" cellspacing="0" border="0">
			<tr>
				<td>
				</td>
			</tr>
		</table>
	</div>
</asp:Content>
